<div class="mod_page">
	<span class="count">共有<em class="h">{{$pageArray.page->total}}</em>条记录，页面：<em class="h">{{$pageArray.page->curPage}}</em>/{{$pageArray.page->totalPage}}</span>
	{{if $pageArray.page->preUrl != ''}}
	<a href="{{$pageArray.page->preUrl}}">上一页</a>
	{{else}}
	<a href="javascript:void(0);" class="undo">上一页</a>
	{{/if}}
	{{foreach from=$pageArray.page->showPages key=key item=item}}
	{{if $item == 'curpage'}}
	<span class="current">{{$key}}</span>
	{{else}}
	<a href="{{$item}}">{{$key}}</a>
	{{/if}}
	{{/foreach}}
	{{if $pageArray.page->nexUrl != ''}}
	<a href="{{$pageArray.page->nexUrl}}">下一页</a>
	{{else}}
	<a href="javascript:void(0);" class="undo">下一页</a>
	{{/if}}
	<span class="goto">到第<input type="text" name='goUrl'>页<a href="javascript:void(0);" id="pageGo" rel="{{$pageArray.page->totalPage}}">GO</a></span>
</div>
<script type="text/javascript">
	var pageUrl = "{{$pageArray.page->pageUrl}}";
	$("#pageGo").click(function(){
		var page = parseInt($("input[name='goUrl']").val(), 10);
		if(page > 0){
			if(page > $("#pageGo").attr("rel")){
				page = parseInt($("#pageGo").attr("rel"), 10);
				window.location.href = pageUrl + "&{{$pageArray.page->defaultParameter}}" + "=" + page;
			}
		}
	})
</script>